package cn.edu.scau.cmi.xiongyi.Singleton;

import javafx.event.ActionEvent;
import javafx.fxml.FXML;

import javafx.scene.control.Button;
import javafx.scene.control.Label;
import javafx.scene.control.TextArea;
import javafx.scene.control.TextField;

public class MyController {
	@FXML
	private Button button;
	@FXML
	private TextField textfield;
	@FXML
	private TextArea textarea;
	@FXML
	private Label label;
	@FXML
public void click(ActionEvent e) {
	String chairmanName=textfield.getText();
    Chairman maninstance=Chairman.getInstance(chairmanName);
    textarea.setDisable(false);
    textarea.setText(maninstance.toString());
    textarea.setDisable(true);
}


}
//1